<?php
namespace Home\Controller;
use Think\Controller;
use Todo\Util\Mobile;

class IndexController extends Controller {
    /**
     * 初始化，完成配置加载， 用户确认，菜单加载
     */
    protected function _initialize(){

        $this->assign('os', 'IOS');
        /*
        $mobile = new Mobile();
        if($mobile->isiOS()){
            $this->assign('os', 'IOS');
        }else if($mobile->isAndroidOS()){
            $this->assign('os', 'ANDROID');
        }
        */
    }
    
    public function login(){
        $this->display();
    }

    public function pages(){
        $this->display();
    }

    public function tpl(){
        $this->display();
    }
}